package com.meiniao.service;

import com.meiniao.dao.UserInfoMapper;
import com.meiniao.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by asus on 2017/6/7.
 */

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public UserInfo findUserById(Integer userId) {
        return userInfoMapper.selectByPrimaryKey(userId);
    }

    @Override
    public List<UserInfo> select() {
        return userInfoMapper.select();
    }


}
